from django.contrib.auth.decorators import login_required
from .models import UserLog
from .forms import UserLogForm,UserLogSearchForm
from public.function import Public

@login_required()
def query_userlog(request):
    cls = Public()
    return cls.url_get(request, app="userlog", template="query_userlog",form=UserLogForm,
                       models=UserLog,search_form=UserLogSearchForm)